<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>HH_SAFE_DISPLAY_TOPIC command</TITLE>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
</head>

<BODY>

<h1>HH_SAFE_DISPLAY_TOPIC command</h1>

<P>Opens a help topic in a specified help window, and disables all shortcuts in the current process. Shortcuts will remain disabled as long as the calling process is active. This command can be used in place of HH_DISPLAY_TOPIC.</P>

<P>If a window type is not specified, a default window type is used. If the window type or default window type is open, the help topic replaces the current topic in the window.</P>

<br>
<table border=1 cellpadding=3 cellspacing=0 width=100%>
<TR VALIGN="top">
<TH><I>pszFile</I></TH>
<TH><I>dwData</I></TH>
</TR>

<TR VALIGN="top">
<TD>
Specifies a compiled help (.chm) file, or a specific topic within a compiled help file. 

<p>To specify a defined window type, insert a greater-than (&gt;) character followed by the name of the window type.</P>
</TD>
<TD>
Specifies NULL or a pointer to a topic within a compiled help file. 
</TD>
</TR>
</TABLE><BR>

<h2>Example</h2>
<p><pre><code>
HWND hwnd =
<br>   HtmlHelp(
<br>             GetDesktopWindow(),
<br>             "file:///c:\\help.chm::/intro.htm>mainwin",
<br>             HH_SAFE_DISPLAY_TOPIC,
<br>             NULL) ;
</pre></code></p>

<H2>Return value</H2>
<p>The handle (hwnd) of the help window.</p>

<h2>Comments</h2>
<p>A default help window contains only the Topic pane and is not a three-pane Help Viewer.</p>
<p>The HH_SAFE_DISPLAY_TOPIC command will only work with the following standard protocols:
<ul>
<li>ftp:
<li>http:
<li>https:
<li>ms-its:
<li>its:
<li>file:
<li>mk@msitstore:
</ul>
</p>
</ul>


<h2>See also</h2>
<p><a href="cmd_hh_help_context.htm">HH_HELP_CONTEXT</a></p>
<p><a href="cmd_hh_display_topic.htm">HH_DISPLAY_TOPIC</a></p>

<br>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td valign="top"><a href="ov_about_htmlhelp_commands.htm"><img src="home.gif" width=20 height=18 alt="link to overview topic" border="0"></a>
</td>
<td><a href="ov_about_htmlhelp_commands.htm">About commands</A>
</td>
</tr>
<tr>
<td>&nbsp;
</td>
</tr>
</table>


<br>
<!--start keywords--->

<!--end keywords--->

</BODY>
</HTML>
